<!--
 * @Description: 
 * @Version: 1.0
 * @Author: Yuanjy
 * @Date: 2020-04-18 18:36:51
 * @LastEditors: Yuanjy
 * @LastEditTime: 2020-04-20 20:39:06
 -->
<template>
  <div>
    <el-button size="mini" type="primary" @click="to">新增订单</el-button>
    <eForm ref="form" :sup-this="supThis" :is-add="true"/>
  </div>
</template>
<script>
import eForm from './form'

export default {
  components: { eForm },
  props: {
    supThis: {
      type: Object,
      required: true
    }
  },
  methods: {
    to() {
      const _this = this.$refs.form
      _this.form.external_procure_number = _this.generateExtraNum()
      _this.initParam()
      _this.dialog = true
    }
  }
}
</script>

<style scoped>
  div{
    display: inline-block;
    margin-right: 3px;
  }
</style>
